package cn.iocoder.yudao.module.contract.controller.admin.invoice.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 发票 Response VO")
@Data
@ExcelIgnoreUnannotated
public class InvoiceManageExportVO {

    @Schema(description = "客户编码")
    @ExcelProperty("客户编码")
    private String clientCode;

    @Schema(description = "购方名称")
    @ExcelProperty("购方名称")
    private String gfmc;

    @Schema(description = "销售凭证")
    @ExcelProperty("销售凭证")
    private String ddh;

    @Schema(description = "凭证日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("凭证日期")
    private LocalDateTime audat;

    @Schema(description = "开票月")
    @ExcelProperty("开票月")
    private String invoiceMonth;

    @Schema(description = "开票日期")
    @ExcelProperty("开票日期")
    private String kprq;

    @Schema(description = "发票号码")
    @ExcelProperty("发票号码")
    private String fphm;

    @Schema(description = "发票状态", example = "1")
    @ExcelProperty(value = "发票状态", converter = DictConvert.class)
    @DictFormat("invoice_fpzt") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String fpzt;

    @Schema(description = "发票总金额")
    @ExcelProperty("发票总金额")
    private String jshj;

    @Schema(description = "销售方名称", example = "10106")
    @ExcelProperty("销售方名称")
    private String xfmc;

    @Schema(description = "销售组织名称")
    @ExcelProperty("销售组织名称")
    private String sellertaxname;

    @Schema(description = "运输方式")
    @ExcelProperty("运输方式")
    private String vsbedms;

    @Schema(description = "订单类型")
    @ExcelProperty("订单类型")
    private String auart;

    @Schema(description = "业务员")
    @ExcelProperty("业务员")
    private String qyusername;

    @Schema(description = "销售大区")
    @ExcelProperty("销售大区")
    private String salesmethodname;

    @Schema(description = "状态", example = "1")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("invoice_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String status;
}